<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : getPagename.xsl
    Created on : November 17, 2013, 5:16 PM
    Author     : Liem
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:p="http://xml.netbeans.org/schema/page" exclude-result-prefixes="p"
version="1.0">
    <xsl:output method="html"/>
    <xsl:param name="pageId"></xsl:param>
    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="p:page">
        <xsl:if test="p:id=$pageId">
            <xsl:value-of select="p:pagename"/>
        </xsl:if>
    </xsl:template>

</xsl:stylesheet>
